package com.shop.admin.vo;

import com.shop.admin.valid.AddGroup;
import com.shop.admin.valid.UpdateGroup;
import lombok.Data;
import org.hibernate.validator.constraints.URL;

import javax.validation.constraints.NotBlank;
import java.util.List;

@Data
public class CateOrderListVo {
    /**
     * 商品id
     */
    private Long orderId;
    /**
     * 商品名字
     */
    @NotBlank(message = "商品名必须提交",groups = {AddGroup.class,UpdateGroup.class})
    private String orderName;
    /**
     * 商品图片集
     */
    @NotBlank(groups = {AddGroup.class})
    @URL(message = "图片必须是一个合法的url地址",groups={AddGroup.class, UpdateGroup.class})
    private List<String> imagesList;

}
